home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #4
/
Amiga Plus CD - 2000 - No. 4.iso
/
Vollversion
/
CamD
/
development
/
docs
/
camdlist.doc
< prev
next >
Wrap
Text File
|
2000-05-15
|
9KB
|
258 lines
TABLE OF CONTENTS
camdlists.lib/AllocListRequest
camdlists.lib/FreeListRequest
camdlists.lib/ListRequest
camdlists.lib/SelectCluster
camdlists.lib/SelectConductor
camdlists.lib/AllocListRequest camdlists.lib/AllocListRequest
NAME
AllocListRequest -- allocate a scrolling list requester
SYNOPSIS
list = AllocListRequest( firsttag )
void *AllocListRequest( Tag, ... );
list = AllocListRequestA( taglist )
void *AllocListRequestA( struct TagItem * );
FUNCTION
This function allocates a list requester structure and fills it in
using the supplied tag list.
INPUTS
The following is a list of tags recognized. Note that since the
functionality of the list requester is very similar to the ASL
requesters, the actual ASL tag values have been used, and the
listrequester tags have been defined in terms of the ASL values.
These tags have the exact same meaning as the corresponding ASL tag:
LISTREQ_Window ASLFR_Window
LISTREQ_Screen ASLFR_Screen
LISTREQ_UserData ASLFR_UserData
LISTREQ_TitleText ASLFR_TitleText
LISTREQ_PositiveText ASLFR_PositiveText
LISTREQ_NegativeText ASLFR_NegativeText
LISTREQ_InitialLeftEdge ASLFR_InitialLeftEdge
LISTREQ_InitialTopEdge ASLFR_InitialTopEdge
LISTREQ_InitialWidth ASLFR_InitialWidth
LISTREQ_InitialHeight ASLFR_InitialHeight
LISTREQ_HookFunc ASLFR_HookFunc
These additional tags are defined
LISTREQ_Labels - pointer to struct List of labels to display.
LISTREQ_Selected - The number of the selected list element.
LISTREQ_Buffer - an optional pointer to a character buffer.
Supplying this tag will cause a string gadget to appear
below the list, where the user can type the name of an
element not in the list. In addition, clicking on a
list element will copy that element's text into the
buffer, overwriting the string. When the requester
terminates, the contents of the string gadget will be copied
to the buffer.
In addition, this buffer can be filled in by the application
before calling this function to initialize the string gadget.
LISTREQ_BufferSize - size of the supplied buffer.
These tags have been defined but not yet implemented:
LISTREQ_PubScreenName ASLFR_PubScreenName
LISTREQ_PrivateIDCMP ASLFR_PrivateIDCMP
LISTREQ_IntuiMsgFunc ASLFR_IntuiMsgFunc
LISTREQ_SleepWindow ASLFR_SleepWindow
LISTREQ_TextAttr ASLFR_TextAttr
LISTREQ_Locale ASLFR_Locale
RESULT
list -- a pointer to a list request.
EXAMPLE
NOTES
BUGS
SEE ALSO
ListRequest(), FreeListRequest()
camdlists.lib/FreeListRequest camdlists.lib/FreeListRequest
NAME
FreeListRequest -- display a scrolling list requester
SYNOPSIS
FreeListRequest( listreq )
FreeListRequest( void * );
FUNCTION
This function deallocates the list requester previously created by
AllocListRequest
INPUTS
listreq -- pointer to a previously allocated list requester
RESULT
EXAMPLE
NOTES
BUGS
SEE ALSO
AllocListRequest(), ListRequest()
camdlists.lib/ListRequest camdlists.lib/ListRequest
NAME
ListRequest -- display a scrolling list requester
SYNOPSIS
confirm = ListRequest( listreq, firsttag )
LONG ListRequest( void *, Tag, ... );
confirm = ListRequestA( listreq, taglist )
LONG ListRequestA( void *, struct TagItem * );
FUNCTION
This function displays the list requester previously created by
AllocListRequest
INPUTS
listreq -- pointer to a previously allocated list requester
tags -- the same tags values as AllocListRequest
RESULT
confirm -- returns TRUE if the positive choice button was clicked,
or a list entry was double-clicked, returns FALSE if the negative
choice button was clicked.
EXAMPLE
NOTES
BUGS
SEE ALSO
AllocListRequest(), FreeListRequest()
camdlists.lib/SelectCluster camdlists.lib/SelectCluster
NAME
SelectCluster -- graphically select a MIDI cluster by name
SYNOPSIS
confirm = SelectCluster( listreq, buffer, maxlength, taglist );
LONG SelectCluster( void *, char *, LONG, Tag, ... );
FUNCTION
This function presents the user with a list of all active
clusters in camd.library. The user can click on an existing
cluster, or type in the name of a new cluster into the
supplied string gadget. "Select" and "Cancel" buttons are also
supplied.
INPUTS
listreq -- pointer to a previously allocated list requester
buffer -- where to put the name the user typed or selected.
In addition, this should be filled in with the name of
the existing cluster.
maxlength -- the length of the buffer.
tags -- the same tags values as AllocListRequest
These LISTREQ tags are passed through to the List Requester:
LISTREQ_Window ASLFR_Window
LISTREQ_Screen ASLFR_Screen
LISTREQ_UserData ASLFR_UserData
LISTREQ_TitleText ASLFR_TitleText
LISTREQ_PositiveText ASLFR_PositiveText
LISTREQ_NegativeText ASLFR_NegativeText
LISTREQ_InitialLeftEdge ASLFR_InitialLeftEdge
LISTREQ_InitialTopEdge ASLFR_InitialTopEdge
LISTREQ_InitialWidth ASLFR_InitialWidth
LISTREQ_InitialHeight ASLFR_InitialHeight
LISTREQ_HookFunc ASLFR_HookFunc
RESULT
confirm -- returns TRUE if the positive choice button was clicked,
or a list entry was double-clicked. Returns FALSE if the negative
choice button was clicked.
EXAMPLE
NOTES
BUGS
SEE ALSO
AllocListRequest(), ListRequest(), FreeListRequest()
camdlists.lib/SelectConductor camdlists.lib/SelectConductor
NAME
SelectConductor -- graphically select a conductor by name
SYNOPSIS
confirm = SelectConductor( listreq, buffer, maxlength, taglist );
LONG SelectConductor( void *, char *, LONG, Tag, ... );
FUNCTION
This function presents the user with a list of all active
conductors in realtime.library. The user can click on an existing
conductor, or type in the name of a new conductor into the
supplied string gadget. "Select" and "Cancel" buttons are also
supplied.
INPUTS
listreq -- pointer to a previously allocated list requester
buffer -- where to put the name the user typed or selected.
In addition, this should be filled in with the name of
the existing conductor.
maxlength -- the length of the buffer.
tags -- the same tags values as AllocListRequest
These LISTREQ tags are passed through to the List Requester:
LISTREQ_Window ASLFR_Window
LISTREQ_Screen ASLFR_Screen
LISTREQ_UserData ASLFR_UserData
LISTREQ_TitleText ASLFR_TitleText
LISTREQ_PositiveText ASLFR_PositiveText
LISTREQ_NegativeText ASLFR_NegativeText
LISTREQ_InitialLeftEdge ASLFR_InitialLeftEdge
LISTREQ_InitialTopEdge ASLFR_InitialTopEdge
LISTREQ_InitialWidth ASLFR_InitialWidth
LISTREQ_InitialHeight ASLFR_InitialHeight
LISTREQ_HookFunc ASLFR_HookFunc
RESULT
confirm -- returns TRUE if the positive choice button was clicked,
or a list entry was double-clicked. Returns FALSE if the negative
choice button was clicked.
EXAMPLE
NOTES
BUGS
SEE ALSO
AllocListRequest(), ListRequest(), FreeListRequest()